package com.ruoyi.slope.ai.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.slope.ai.mapper.SlopeAiDeviceManagementMapper;
import com.ruoyi.slope.ai.domain.SlopeAiDeviceManagement;
import com.ruoyi.slope.ai.service.ISlopeAiDeviceManagementService;

/**
 * 监测设备管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-05
 */
@Service
public class SlopeAiDeviceManagementServiceImpl implements ISlopeAiDeviceManagementService 
{
    @Autowired
    private SlopeAiDeviceManagementMapper slopeAiDeviceManagementMapper;

    /**
     * 查询监测设备管理
     * 
     * @param deviceId 监测设备管理主键
     * @return 监测设备管理
     */
    @Override
    public SlopeAiDeviceManagement selectSlopeAiDeviceManagementByDeviceId(String deviceId)
    {
        return slopeAiDeviceManagementMapper.selectSlopeAiDeviceManagementByDeviceId(deviceId);
    }

    /**
     * 查询监测设备管理列表
     * 
     * @param slopeAiDeviceManagement 监测设备管理
     * @return 监测设备管理
     */
    @Override
    public List<SlopeAiDeviceManagement> selectSlopeAiDeviceManagementList(SlopeAiDeviceManagement slopeAiDeviceManagement)
    {
        return slopeAiDeviceManagementMapper.selectSlopeAiDeviceManagementList(slopeAiDeviceManagement);
    }

    /**
     * 新增监测设备管理
     * 
     * @param slopeAiDeviceManagement 监测设备管理
     * @return 结果
     */
    @Override
    public int insertSlopeAiDeviceManagement(SlopeAiDeviceManagement slopeAiDeviceManagement)
    {
        return slopeAiDeviceManagementMapper.insertSlopeAiDeviceManagement(slopeAiDeviceManagement);
    }

    /**
     * 修改监测设备管理
     * 
     * @param slopeAiDeviceManagement 监测设备管理
     * @return 结果
     */
    @Override
    public int updateSlopeAiDeviceManagement(SlopeAiDeviceManagement slopeAiDeviceManagement)
    {
        return slopeAiDeviceManagementMapper.updateSlopeAiDeviceManagement(slopeAiDeviceManagement);
    }

    /**
     * 批量删除监测设备管理
     * 
     * @param deviceIds 需要删除的监测设备管理主键
     * @return 结果
     */
    @Override
    public int deleteSlopeAiDeviceManagementByDeviceIds(String[] deviceIds)
    {
        return slopeAiDeviceManagementMapper.deleteSlopeAiDeviceManagementByDeviceIds(deviceIds);
    }

    /**
     * 删除监测设备管理信息
     * 
     * @param deviceId 监测设备管理主键
     * @return 结果
     */
    @Override
    public int deleteSlopeAiDeviceManagementByDeviceId(String deviceId)
    {
        return slopeAiDeviceManagementMapper.deleteSlopeAiDeviceManagementByDeviceId(deviceId);
    }
}
